package view;



import javax.swing.JFrame;
import javax.swing.SwingUtilities;

import view.util.JSpritePanel;

@SuppressWarnings("unused")
public class TestViewer  extends JFrame implements Runnable {
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	private	JSpritePanel	viewPanel = null;

	public static void main(String args[]) {
		SwingUtilities.invokeLater(new Runnable() {
			@Override
			public void run() {
				TestViewer viewer = new TestViewer();
				if (viewer!=null) {
					viewer.run();
				}
			}
		});

	}

	@Override
	public void run() {

		init();
	}

	public void init() {

		viewPanel = null;
		if (viewPanel!=null) {
//			viewPanel.addSprite("Stuart", new Rectangle(50,50,100,100), null);
			viewPanel.setVisible(true);
			viewPanel.setEnabled(true);
		}

		//this.setTitle("TEST VIEWER");
		this.setSize(800,600);
		this.add(viewPanel);
		this.setVisible(true);
	}


}